#--------------------------------------------------------------------------------------------------------------------------------------------------------
#
# Mi-DevEnv			:	http://midevenv.codeplex.com 
#					:	(c) IT Bridge 2012
#					:	A concept originated by Chris Nurse
#
# Licence			:	GNU General Public License version 2 (GPLv2)
#					:	http://midevenv.codeplex.com/license
#
# Summary           :   Install Visual Studio 2012
#
#--------------------------------------------------------------------------------------------------------------------------------------------------------

Set-StrictMode -Version Latest

if ((Get-Module MDE-Common) -eq $null) {
    Import-Module MDE-Common
    }

[string]$executionPath = Split-Path $script:MyInvocation.MyCommand.Path -Parent
[bool]$needDC = $false
[bool]$needWebServer = $false

Function InstallProduct() {
    
    if (Get-RunInstallation -Package GetPackageName -RequireDC $needDC -RequireIIS $needWebServer) {
        & $InstallFolder\VS2012\vs_ultimate.exe /q /full
        Wait-SetupComplete vs_ultimate
        }
    }

#region Framework

Function GetInstallName() {
    return "Microsoft Visual Studio Premium 2012"
    }
    
Function GetRequireRestart() {
    return $false
    }

Function GetPackageName() {
    return "VS2012U"
    }

Function GetPackageDescription() {
    return "Visual Studio 2012 Ultimate"
    }
    
Function GetServerBuild() {
    return $false 
    }
        
Function GetInstallPriority() {
    return 71000
    }

#endregion